import request from '@/utils/request.js'

// 封装注册接口
export const regAPI = obj => request.post('/api/reg', obj)
// 登录接口
export const loginAPI = obj => request.post('/api/login', obj)
// 用户信息接口
export const getUserAPI = () => request.get('/my/userinfo')
// 左侧菜单接口
export const getMuesAPI = () => request.get('/my/menus')
// 修改用户信息接口
export const updateUser = obj => request.put('/my/userinfo', obj)
// 更新头像接口
export const avartarAPI = str => request.patch('/my/update/avatar', { avatar: str })
// 修改密码接口
export const pwdAPI = obj => request.patch('/my/updatepwd', obj)
